import { GaRegExp, ruleInject, ruleInjectable } from "../InjectionRule";
import { MakeListRule } from "../methods/make-list";

@ruleInjectable()
export default class arrayRule extends GaRegExp {

	@ruleInject() private calcRule!: GaRegExp;

	public RuleInit() {
		this.ParseRule([
			"\\[", this.Supply("ARRAY"), ...MakeListRule([this.calcRule]), "\\]"
		]);
	}

}
